#include <QApplication>
#include <QQmlApplicationEngine>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QQmlApplicationEngine engine;
    // 指定插件路径才能加载插件(路径下需要有响应插件的qmldir和dll文件)
    //engine.addImportPath(qApp->applicationDirPath() + "/plugin");
    engine.addImportPath("G:/mygitcode/learnQmlBook/ch17-extensions/src/CityUI/plugin");

    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));

    return app.exec();
}
